/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.skymr.sms.dao;

import java.sql.Connection;

/**
 *
 * @author skymr
 */
public class ConnectionManager {
    
    public static Connection getConnection(String url,String username,String password) throws Exception{
        Class.forName("org.sqlite.JDBC");
        Connection conn =java.sql.DriverManager.getConnection(url, username, password);
        return conn;
    }
    
    public static Connection getSqliteConnection() throws Exception{
        return getConnection("jdbc:sqlite:e:/tt.db","","");
    }
    
    public static void main(String[] args) throws Exception{
        System.out.println(getConnection("jdbc:sqlite:e:/tt.db","",""));
    }
}
